﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


/// <summary>
/// 自动旋转角度的行为
/// </summary>
[AddComponentMenu("Behavior/Rotate")]
public class BhvRotate : MonoBehaviour
{
    public Space space = Space.Self;
    public Vector3 angle;
    // Start is called before the first frame update

    // Update is called once per frame
    void Update()
    {
        transform.Rotate(angle * Time.deltaTime, space);
    }
}
